package day8;

public class TriAngle {
    public static void main(String[] args) {
        Area area = new Area(10,10);
    }
    //底边长
    private int base;
    //高
    private int height;


    public int getBase() {
        return base;
    }

    public void setBase(int base) {
        this.base = base;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
class Area{
    public Area(int base,int height){
        double area = (base*height)/2;
        System.out.println("面积为:"+area);
    }
}
